package com.alatus.mapper;

import com.alatus.commons.DataScope;
import com.alatus.model.TActivity;
import com.alatus.query.ActivityQuery;

import java.util.ArrayList;
import java.util.List;

public interface TActivityMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TActivity record);

    int insertSelective(TActivity record);

    TActivity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TActivity record);

    int updateByPrimaryKey(TActivity record);
    @DataScope(tableAlias = "ta",tableField = "owner_id")
    ArrayList<TActivity> selectActivityByPage(ActivityQuery activityQuery);

    TActivity selectDetailByPrimaryKey(Integer id);

    int deleteByIds(List<String> idList);

    List<TActivity> selectOnGoingActivities();

    Integer selectActivityCount();
}